//配置信息

export const SETCONFIG = 'SETCONFIG' //配置信息设置

export default {
    state: JSON.parse(window.localStorage.getItem('c'))||{},
    mutations: {
        [SETCONFIG](state, user) {
            console.log(user)
            Object.assign(state, user)
            window.localStorage.setItem('c',JSON.stringify(state))
        }
    },
    actions: {
        [SETCONFIG]({commit}, user) {

            commit(SETCONFIG, user)
        }
    }
}